const cartStore = {
    namespaced: true, //分模块的命名空间
    state: {
        cartname: "京东",
    },
    mutations: {
        changeCart(state, name) {
            state.cartname = name;
        },
    },
    actions: {
        cartAction({ commit }, name) {
            commit("changeCart", name);
        },
    },
    getters: {
        cartnames: (state) => {
            return state.cartStore.cartname;
        },
    },
};
export default cartStore;